package com.cjm.one.payment.service;

import com.alipay.api.AlipayApiException;
import com.cjm.one.model.payment.entity.AliPay;
import com.cjm.one.model.payment.entity.PaymentInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;
import java.text.ParseException;
import java.util.Map;

/**
* @author 29289
* @description 针对表【payment_info(付款信息表)】的数据库操作Service
* @createDate 2024-09-05 16:27:50
*/
public interface PaymentInfoService extends IService<PaymentInfo> {
    Boolean processRefund(AliPay aliPay) throws AlipayApiException ;
    String pay(String orderNo, HttpServletResponse httpResponse) throws IOException;

    String notify(Map<String, String> params) throws ParseException, AlipayApiException;
}
